package com.yiwei.zxp.api.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xsooy-pc on 18-5-24.
 */

public class ParamsBean implements Parcelable {

    public String name;
    public String value;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.value);
    }

    public ParamsBean() {
    }

    protected ParamsBean(Parcel in) {
        this.name = in.readString();
        this.value = in.readString();
    }

    public static final Parcelable.Creator<ParamsBean> CREATOR = new Parcelable.Creator<ParamsBean>() {
        @Override
        public ParamsBean createFromParcel(Parcel source) {
            return new ParamsBean(source);
        }

        @Override
        public ParamsBean[] newArray(int size) {
            return new ParamsBean[size];
        }
    };
}
